package com.example.demo.service;

import com.example.demo.domain.entity.ParameterValueEntity;
import com.example.demo.domain.model.Parameter;
import com.example.demo.domain.model.ParameterValue;

import java.util.List;

public interface ParameterValueService {


    boolean existById(Long id);

    int updateById(ParameterValueEntity entity);

    ParameterValueEntity getById(Long id);

    void savePvList(Parameter parameter, Long rootId, Long pid);

    void saveOnePv(Long rootId, Long pid, ParameterValue parameterValue);

    List<ParameterValueEntity> listByRootId(Long parameterRootId);

    int deleteById(Long id);

    int deleteRelationshipById(Long id);

    int deleteByPid(Long pid);
}
